prepare-root: check for read-only sysroot status early on
authorLuca BRUNO <luca.bruno@coreos.com>
Mon, 1 Nov 2021 09:09:58 +0000 (09:09 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Mon, 1 Nov 2021 09:42:36 +0000 (09:42 +0000)
commit63d0c4c78130154c95c6a8ff1fb231936d9fa607
treea8be3c8abfd36b01493b8cb15861922b39f92043
parentb7efd16cc5e1555ca4aca42fa17a6f0565b7c647
prepare-root: check for read-only sysroot status early on

This moves read-only sysroot checks upfront, so that they are not
intermixed with mount operations.
It has no immediate side-effects, but allow these check to be
independent from the rest of the mounting logic (and future changes
to it).
src/switchroot/ostree-prepare-root.c